package com.woniuxy.rms.dao;

import com.woniuxy.rms.pojo.DynamicTags;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface DynamicTagsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DynamicTags record);

    int insertSelective(DynamicTags record);

    DynamicTags selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DynamicTags record);

    int updateByPrimaryKey(DynamicTags record);

    /**
     * Description : 根据动态id删除点赞  <br/>
     * ChangeLog : 1. 创建 (2020/3/25 0025 下午 6:43 [Administrator]);
     * @param id
     * @return void
    */
    @Delete("delete from dynamic_tags where dynamic_id = #{value}")
    void deleteTagByDynmaicId(Long id);
    /**
     * Description : 批量删除动态点赞  <br/>
     * ChangeLog : 1. 创建 (2020/3/25 0025 下午 6:55 [Administrator]);
     * @param dynamicIds
     * @return void
     */
    void deleteTagByDynmaicIds(List<Long> dynamicIds);
}